org.eclipse.vtp.desktop.projects.core.internals
Class BusinessObjectField
java.lang.Object
org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
org.eclipse.vtp.desktop.projects.core.internals.BusinessObjectField
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, IBusinessObjectField, ObjectListener, IVoiceToolsResource
public class BusinessObjectField
- extends VoiceResource
- implements IBusinessObjectField
This is a concrete implementation of IBusinessObjectField
and provides the default behavior of that interface.
- Version:
- 2.0
- Author:
- Trip Gilman
|
Constructor Summary |
BusinessObjectField(BusinessObject businessObject,
java.lang.String name,
FieldType dataType,
java.lang.String initialValue)
Creates a new BusinessObjectField with the given name,
data type, initial value. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BusinessObjectField
public BusinessObjectField(BusinessObject businessObject,
java.lang.String name,
FieldType dataType,
java.lang.String initialValue)
- Creates a new
BusinessObjectField with the given name,
data type, initial value. The parent business object is also provided
by the businessObject parameter.
- Parameters:
businessObject - The parent business objectname - The name of this business object fielddataType - The data type of this business object fieldinitialValue - The initial value for this business object field
getObjectId
protected java.lang.String getObjectId()
- Description copied from class:
VoiceResource
- The object id is used by the event system to uniquely
identify a project resource. In this fashion, multiple
references to the resource can be created and still be
notified of events.
- Specified by:
getObjectId in class VoiceResource
- Returns:
- A unique identifier for this resource
getName
public java.lang.String getName()
- Specified by:
getName in interface IBusinessObjectField- Specified by:
getName in interface IVoiceToolsResource
- Returns:
- The name of this business object field
getDataType
public FieldType getDataType()
- Specified by:
getDataType in interface IBusinessObjectField
- Returns:
- The data type definition of this business object field
getInitialValue
public java.lang.String getInitialValue()
- Specified by:
getInitialValue in interface IBusinessObjectField
- Returns:
- The initial value this field will have when a new instance
of it's containing business object is created
getParent
public IVoiceToolsResource getParent()
- Description copied from interface:
IVoiceToolsResource
- Returns the parent of this resource. If this is a project
resource this function returns
this.
- Specified by:
getParent in interface IVoiceToolsResource
- Returns:
- The parent of this resource resource